package com.koron.css2.contractmanage.Enum;

/**
 * 失败状态枚举
 */
public enum EcFailStatusEnum {
    EC_FAIL_STATUS_0("0", "合同过期未签"),
    EC_FAIL_STATUS_1("1", "客户拒签");

    /**
     * 失败状态
     */
    private String ecFailStatus;

    /**
     * 失败状态名称
     */
    private String ecFailStatusName;

    EcFailStatusEnum(String ecFailStatus, String ecFailStatusName) {
        this.ecFailStatus = ecFailStatus;
        this.ecFailStatusName = ecFailStatusName;
    }

    public String getEcFailStatus() {
        return ecFailStatus;
    }

    public String getEcFailStatusName() {
        return ecFailStatusName;
    }


    public static String getEcFailStatusName(String ecFailStatus) {
        EcFailStatusEnum[] ecFailStatusEnums = values();
        for (EcFailStatusEnum ecFailStatusEnum : ecFailStatusEnums) {
            if (ecFailStatusEnum.getEcFailStatus().equals(ecFailStatus)) {
                return ecFailStatusEnum.getEcFailStatusName();
            }
        }
        return null;
    }
}
